home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 1
/
CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso
/
Aminet
/
comm
/
mebbs
/
usage03.lha
/
usage.docs
next >
Wrap
Text File
|
1994-07-08
|
2KB
|
47 lines
USAGE.REXX - Another dumb little utility by Larry Cloud, Kitt's Korner BBS
MEBBSNET CSR NorthWest USA - M3001
We used to use a program called CT which made a nice looking Bar-graph chart
of the BBS usage. That was with Starnet. When MEBBSNET came out, Bill
changed some of the text in the log that CT was looking for (plus it was
looking for STARNET1.LOG). Keith liked it so much, he tasked me with writing
a replacement for it. Since my "C" knowledge can pretty much fill a standard
sized thimble, I of course wrote it in Arexx. It comes in at a whopping 79
lines of code, and is just over 3.6K in length. See, you can do just about
anything in Arexx with a little thought!
So, you ask, what do I need to do to make this puppy work for me?
Copy the file called USAGE.REXX to your MEBBSNET:REXX directory. Then,
add a line in your MIDNIGHT.SCP file that runs it. It takes two arguments -
first you pass the line number, then the bulletin number. So, if you wanted
to make a chart of line 1's usage, and send it to bulletin #12, you would put
the following in your midnight script:
RX MEBBSNET:REXX/USAGE.REXX 1 12
For a line 2 usage chart, going to bulletin #69 (dude) you would put:
RX MEBBSNET:REXX/USAGE.REXX 2 69
Before you run it for the first time, you will need to edit line #2.
You need to tell it your BBS name, and the path to your bulletins directory.
This is the ONLY line you should edit in this script!
See how easy that was? I decided to do it this way for people running
multiple lines.
Next neato thing - if the file in your configfiles directory doesn't exist,
OR, if instead of passing the bulletin number you pass the word RESET, it
will start all over with raw stats.
If you'd like to see something added to this program, let me know. Its
just too small right now, and it runs too fast ;)
IMPORTANT - You NEED to MAKE SURE that your MEBBSNETx.LOG (x being the line
number) gets deleted after running this script. And it has to run at midnight.
I didn't put any idiot checking into it (I'm pretty much one myself) so just
make sure you follow that simple rule.
Larry